//声音传感器

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(7,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(100);
  int value = analogRead(A0);
  Serial.println(value);
  if (value >= 20) {
    digitalWrite(7,HIGH);
    delay(1000);
    digitalWrite(7,LOW);
  }
}
